export default {
  "code": "cs_balance_collect_account",
  "enable_groovy": false,
  "ext": "service/cs/asset/account/balance",
  "layout": "tab",
  "memo": "平账",
  "status": 5,
  "structs": [{
      "actions": [{
          "type": "add",
          "name": "新增",
          "locate": "none",
          "serial": 1
        },
        {
          "type": "edit",
          "name": "修改",
          "path_submit": "service/{app}/asset/performance/collector/update",
          "serial": 2
        },
        {
          "type": "view",
          "name": "查看",
          "serial": 3
        },
        {
          "type": "export",
          "name": "导出",
          "code": "exp_plog",
          "path": "service/{app}/bill/data/cs_balance_collect_account/download",
          "serial": 6
        },
        {
          "type": "process",
          "name": "处置",
          "code": "dispose",
          "locate": "right",
          "path": "service/{app}/cs/case/recycle/pf",
          "param": {
            "fields": [{
              "cardpos": 2,
              "code": "status",
              "listpos": 2,
              "name": "是否自动补帐",
              "rangeset": "3:发布@5:确认",
              "scope": "both",
              "required": false,
              "def_value": 0,
              "param_def_value": 0,
              "status": 5,
              "type": "stat"
            }]
          },
          "scope": "optional",
          "serial": 1
        },
        {
          "type": "process",
          "name": "自动平账",
          "code": "auto_balance",
          "locate": "right",
          "path": "service/{app}/asset/account/auto/balance",
          "param": {
            "param_key": "auto_params",
            "fields": [{
                "cardpos": 2,
                "code": "auto_add_plog",
                "listpos": 2,
                "name": "是否自动补帐",
                "rangeset": "1:是@0:否",
                "scope": "both",
                "required": false,
                "def_value": 0,
                "param_def_value": 0,
                "status": 5,
                "type": "stat"
              },
              {
                "cardpos": 2,
                "code": "force_balance_money",
                "listpos": 2,
                "name": "是否强平金额",
                "rangeset": "1:是@0:否",
                "scope": "both",
                "required": false,
                "def_value": 0,
                "param_def_value": 0,
                "status": 5,
                "type": "stat"
              },
              {
                "cardpos": 2,
                "code": "cover_person_charge",
                "listpos": 2,
                "name": "是否覆盖人工干预",
                "rangeset": "1:是@0:否",
                "scope": "both",
                "required": false,
                "def_value": 0,
                "param_def_value": 0,
                "status": 5,
                "type": "stat"
              }
            ]
          },
          "scope": "optional",
          "serial": 1
        }
      ],
      "code": "kcs_asset_charge_account_log",
      "col_count": 1,
      "enable_attachment": false,
      "enable_inherit": true,
      "enable_main": true,
      "fields": [{
          "cardpos": 1,
          "code": "contract_code",
          "editable": false,
          "listpos": 1,
          "name": "合同编号",
          "param": {},
          "rangeset": "",
          "required": false,
          "scope": "both",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 0,
          "code": "collect_tenantry_id",
          "editable": false,
          "listpos": 0,
          "name": "催收方",
          "param_def_value": "zxyl",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 0,
          "code": "debtor_name",
          "editable": false,
          "listpos": 5,
          "name": "借款人",
          "param": {},
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 13,
          "code": "overdue_period",
          "editable": false,
          "listpos": 13,
          "name": "逾期期数",
          "param": {
            "range": true
          },
          "rangeset": "",
          "required": false,
          "scope": "both",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 19,
          "code": "deduct_type",
          "editable": false,
          "listpos": 19,
          "name": "划扣方式",
          "rangeset": "0:其他@1:认款@3:划扣@5:微信扫码支付@7:O2O",
          "required": false,
          "scope": "both",
          "status": 5,
          "type": "stat"
        },
        {
          "cardpos": 22,
          "code": "charge_acct_date",
          "editable": false,
          "listpos": 22,
          "name": "入账时间",
          "required": false,
          "param": {
            "range": true
          },
          "scope": "both",
          "status": 5,
          "type": "date"
        },
        {
          "cardpos": 23,
          "code": "total_money",
          "editable": false,
          "listpos": 23,
          "name": "入账金额(本金+利息+罚息+违约金)",
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "money"
        },
        {
          "cardpos": 26,
          "code": "asset_tenantry_id",
          "editable": false,
          "listpos": 26,
          "name": "委托方",
          "tpl": "${asset_tenantry_name}",
          "rangeset": "db_asset_tenantry",
          "required": false,
          "scope": "both",
          "status": 5,
          "type": "ref"
        },
        {
          "cardpos": 0,
          "code": "collector_name",
          "editable": false,
          "listpos": 0,
          "name": "催收员",
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 28,
          "code": "collector_id",
          "editable": true,
          "listpos": 28,
          "name": "催收员",
          "tpl": "${collector_name}",
          "rangeset": {
            "code": "ds_collector",
            "mapping": {
              "collector_name": "collector_name",
              "org_name": "org_name",
              "org_id": "org_id",
              "collector_type": "collector_type"
            }
          },
          "required": true,
          "scope": "data",
          "status": 5,
          "type": "ref"
        },
        {
          "cardpos": 0,
          "code": "org_id",
          "editable": false,
          "listpos": 0,
          "name": "所在组",
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 0,
          "code": "collector_type",
          "editable": false,
          "listpos": 0,
          "name": "类型",
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 32,
          "code": "org_name",
          "editable": false,
          "listpos": 32,
          "name": "所在组",
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 35,
          "code": "zc",
          "editable": false,
          "listpos": 35,
          "name": "所在职场",
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 35,
          "code": "final_received_money",
          "editable": false,
          "listpos": 35,
          "name": "回款金额",
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 40,
          "code": "balance_type",
          "editable": false,
          "listpos": 40,
          "name": "平账方式",
          "rangeset": "0:未平账@3:自然@5:补记录@7:金额强平",
          "required": false,
          "scope": "stat",
          "status": 5,
          "type": "stat"
        },
        {
          "cardpos": 0,
          "code": "account_crt_id",
          "editable": false,
          "listpos": 0,
          "name": "创建者",
          "param": {},
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 0,
          "code": "tenantry_id",
          "editable": false,
          "listpos": 0,
          "name": "所属租户",
          "param": {},
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 0,
          "code": "crt_ts",
          "editable": false,
          "listpos": 0,
          "name": "创建时间",
          "param": {},
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 0,
          "code": "lm_ts",
          "editable": false,
          "listpos": 0,
          "name": "最后修改时间",
          "param": {},
          "rangeset": "",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 39,
          "code": "enable_close",
          "def_value": "false",
          "editable": false,
          "listpos": 39,
          "name": "是否结算",
          "rangeset": "0:否@1:是",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "stat"
        },
        {
          "cardpos": 40,
          "code": "status",
          "editable": false,
          "listpos": 40,
          "name": "状态",
          "rangeset": "0:待处理@3:已发布@5:已确认",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "stat"
        }
      ],
      "ref_type": "bridge",
      "status": 5
    },
    {
      "code": "kcs_asset_deduct_flow_log",
      "name": "划扣流水",
      "memo": "",
      "enable_attachment": false,
      "actions": [{
          "type": "add",
          "name": "新增",
          "locate": "none",
          "serial": 1
        },
        {
          "type": "edit",
          "name": "修改",
          "locate": "none",
          "serial": 2
        },
        {
          "type": "view",
          "name": "查看",
          "locate": "none",
          "serial": 3
        },
        {
          "type": "delete",
          "name": "删除",
          "locate": "none",
          "serial": 3
        }
      ],
      "enable_main": false,
      "fields": [{
          "cardpos": 1,
          "code": "contract_code",
          "editable": false,
          "listpos": 1,
          "name": "合同编号",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 2,
          "code": "debtor_name",
          "editable": false,
          "listpos": 2,
          "name": "借款人名称",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 5,
          "code": "pay_type",
          "editable": false,
          "listpos": 5,
          "name": "还款方式",
          "required": false,
          "rangeset": "0:其他@1:认款@3:划扣@5:微信扫码支付@7:O2O",
          "scope": "data",
          "status": 5,
          "type": "stat"
        },
        {
          "cardpos": 9,
          "code": "deduct_date",
          "editable": false,
          "listpos": 9,
          "name": "划扣日期",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "date"
        },
        {
          "cardpos": 11,
          "code": "deduct_money",
          "editable": false,
          "listpos": 11,
          "name": "划扣金额",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "money"
        },
        {
          "cardpos": 15,
          "code": "account_code",
          "editable": false,
          "listpos": 15,
          "name": "还款卡号",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 17,
          "code": "account_name",
          "editable": false,
          "listpos": 17,
          "name": "户名",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 20,
          "code": "pay_channel",
          "editable": false,
          "listpos": 20,
          "name": "支付通道",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 21,
          "code": "pay_channel_name",
          "editable": false,
          "listpos": 21,
          "name": "支付通道名",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 24,
          "code": "trade_flow",
          "editable": false,
          "listpos": 24,
          "name": "通道交易流水号",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 27,
          "code": "pay_time",
          "editable": false,
          "listpos": 27,
          "name": "支付时间",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "timestamp"
        },
        {
          "cardpos": 31,
          "code": "business_id",
          "editable": false,
          "listpos": 31,
          "name": "催收系统流水号",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        },
        {
          "cardpos": 33,
          "code": "credit_business_id",
          "editable": false,
          "listpos": 33,
          "name": "信贷交易流水号",
          "required": false,
          "scope": "data",
          "status": 5,
          "type": "code"
        }
      ],
      "rm": {
        "type": "inner",
        "id_key_main": "contract_code",
        "id_key_slave": "contract_code",
        "entity_code_main": "kcs_asset_charge_account_log",
        "entity_code_slave": "kcs_asset_deduct_flow_log"
      },
      "ref_type": "direct"
    }
  ]
}
